package com.sziit.controller;

import com.sziit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetUserInfo {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "getUser",method = RequestMethod.POST)
    public String getUser(String userCode){
        return userService.userInfo(userCode);
    }
}
